package com.iknight.mgr.core.jstree;

import net.sf.json.JSONObject;

import java.io.Serializable;
import java.util.List;

/**
 * Created by JERY on 2017/7/17.
 */
public class JsTreeNode<T> implements Serializable {
    private String id;
    private String text;
    private String icon;
    private String parent;
    private NodeStatus state;
    private List<T> children;
    private JSONObject attributes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public NodeStatus getState() {
        return state;
    }

    public void setState(NodeStatus state) {
        this.state = state;
    }

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    public JSONObject getAttributes() {
        return attributes;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public void setAttributes(JSONObject attributes) {
        this.attributes = attributes;

    }
}
